﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PioneerBoilerplate.Repository.UnitOfWorks
{
    public interface IUnitOfWorkManager
    {
        IUnitOfWorkHandle<TDbContext> Begin<TDbContext>() where TDbContext : DbContext;

        IUnitOfWorkHandle<TDbContext> BeginNew<TDbContext>() where TDbContext : DbContext;
    }
}
